package com.tz.marlon.tag;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;

public class TmElseTag extends TagSupport{
	
	@Override
	public int doStartTag() throws JspException {
		TmIfTag parent = (TmIfTag)this.getParent();
		if(parent!=null && !parent.getTest()){
			return EVAL_BODY_INCLUDE;//继续去执行标签提的内容
		}else{
			return SKIP_BODY;
		}
	}
}
